package com.zhang.warehouse.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.zhang.common.converter.PurchaseStatusConverter;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 采购信息
 * </p>
 *
 * @author 创世神
 * @since 2023-10-14
 */
@Data
@TableName("my_purchase")
public class Purchase implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ExcelProperty("编号")
    private Long id;

    /**
     *采购人id
     */
    @TableField("assignee_id")
    @ExcelProperty("采购人编号")
    private Long assigneeId;

    /**
     *采购人名称
     */
    @TableField("assignee_name")
    @ExcelProperty("采购人名称")
    private String assigneeName;

    @TableField("phone")
    @ExcelProperty("采购人手机号")
    private String phone;

    @TableField("priority")
    private Integer priority;

    @TableField("status")
    @ExcelProperty(value = "采购状态",converter= PurchaseStatusConverter.class)
    private Integer status;

    @TableField("ware_id")
    @ExcelProperty("仓库Id")
    private Long wareId;

    @TableField("amount")
    private BigDecimal amount;

    @TableField("create_time")
    private String createTime;

    @TableField("update_time")
    private String updateTime;
}
